package com.cinema.model;

 public class Manager extends User {

    // 构造函数
    public Manager(String userId, String username, String password, String phoneNumber) {
        super(userId, username, password, "manager", phoneNumber);
    }

    // 实现修改密码方法
    @Override
    public boolean changePassword(String oldPassword, String newPassword) {
        if (this.password.equals(oldPassword)) {
            this.password = newPassword;
            return true;
        }
        return false;
    }

    // 经理特有方法（后续扩展）
    public void generateDailyReport() {
        System.out.println("生成每日销售报告...");
    }
}